//
//  WDNetworkBaseObject.h
//  WDLogicBehind
//
//  Created by Alean on 2022/12/1.
//

#import <Foundation/Foundation.h>


typedef enum : NSUInteger {
    RequestMethodGet,
    RequestMethodPost,
    RequestMethodPut,
    RequestMethodHead
} RequestMethod;

#pragma mark - 请求block
typedef void(^SuccessBlock)(id responseObject);

typedef void(^FailureBlock)(NSURLSessionTask *task, NSError *error, NSInteger statusCode);

#pragma mark - 上传block回调
typedef void(^UploadSuccessBlock)(id responseObject);

typedef void(^UploadProgressBlock)(NSProgress *uploadProgress);

typedef void(^UploadFailureBlock)(NSURLSessionTask *task, NSError *error, NSInteger statusCode, NSArray <UIImage *>*uploadFailedImages);

#pragma mark - 下载block回调
typedef void(^DownloadSuccessBlock)(id responseObject);

typedef void(^DownloadProgressBlock)(NSProgress *uploadProgress);

typedef void(^DownloadFailureBlock)(NSURLSessionTask *task, NSError *error, NSString* resumableDataPath);

NS_ASSUME_NONNULL_BEGIN

@interface WDNetworkBaseObject : NSObject

@end

NS_ASSUME_NONNULL_END
